package com.ylxn.io;

import java.io.InputStream;

public class Resources {
    /**
     * 根据配置文件路径，将配置文件加载成字节输入流，存在内存中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
